CC=mpicc
CFLAGS=-g -Wall 
NODES=4
INPUT=event_trace.tab 

build: failureCause nodesLocation 

failureCause: failureCause.c 

nodesLocation: nodesLocation.o hashmap.o 
	$(CC) $^ -o $@

run-fail: failureCause
	mpiexec -n $(NODES) ./failureCause ./event_trace.tab 

run-nodes: nodesLocation
	mpiexec -n $(NODES) ./nodesLocation ./event_trace.tab ./node.tab ./out_nodes

clean: 
	rm -f ./*~ ./*.o ./failureCause ./nodesLocation 
